package com.yt.base.util.json;

import com.google.gson.*;
import java.lang.reflect.Type;
import java.util.Date;

public class JsonDateDeserializer implements JsonDeserializer {

	public JsonDateDeserializer() {
	}

	public Date deserialize(JsonElement jsonEl, Type type, JsonDeserializationContext context) throws JsonParseException {
		return new Date(jsonEl.getAsJsonPrimitive().getAsLong());
	}

}
